<template>
  <div>
    <div class="rightHeader">
      <h3 class="fl welcome">欢迎您，尊敬的xx店经理</h3>

      <a href="#"><div class="headerItem fr">退出</div></a>
      <a href="#"><div class="headerItem fr">帮助</div></a>
      <h4 class="name fr">盛上锋</h4>
      <img class="touxiang fr" src="@/assets/头像.jpg" alt="" />
    </div>
  </div>
</template>

<script>
import { mapState, mapActions, mapMutations } from "vuex";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState("home", ["pathName"]),
  },
  created() {},
  methods: {
    ...mapActions("home", ["changeIsAddStaff"]),
    ...mapMutations("home", ["CHANGE_IS_ADD_STAFF"]),
  },
};
</script>

<style>
/*右侧头部区域*/
.rightHeader {
  height: 50px;
  background-color: white;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
.headerItem {
  color: #000;
  line-height: 50px;
  margin: 0 30px 0 10px;
  font-size: 13px;
}
.welcome {
  margin-left: 20px;
  line-height: 50px;
}
.touxiang {
  margin: 5px 10px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
}
.name {
  color: #0078fc;
  margin-right: 20px;
  line-height: 50px;
}
</style>
